/* -*- C++ -*- */

//=============================================================================
/*
 * @author Feloweria <380374483@qq.com>
 * Copyright (C) Feloweria
 * 
 * $ID 2013-07-13 04:41:13 PM
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * @version 1.0
 */
//=============================================================================

#ifndef FLOWRIA_LOG_INCLUDE
#define FLOWRIA_LOG_INCLUDE

#include <stdio.h>

#include "Felowria.h"
#include "Base/Type.h"
#include "Base/String.h"

FELOWRIA_BEGIN

void DLL_EXPORT Log(const  UTF8String& log,const UTF8 *file_name,int64 line_num);
void DLL_EXPORT Log(const  UTF16String& log,const UTF8 *file_name,int64 line_num);
void DLL_EXPORT Log(const  UTF16String& log,const UTF8 *file_name,int64 line_num);
void DLL_EXPORT Log(const  WideString& log,const UTF8 *file_name,int64 line_num);
	  
void DLL_EXPORT Log(const  UTF8* log,const UTF8 *file_name,int64 line_num);
void DLL_EXPORT Log(const  UTF16* log,const UTF8 *file_name,int64 line_num);
void DLL_EXPORT Log(const  UTF32* log,const UTF8 *file_name,int64 line_num);
void DLL_EXPORT Log(const  Wide* log,const UTF8 *file_name,int64 line_num);


#define	LOG_TRACE(log)						Log(log,__FILE__,__LINE__);
#define	LOG_ERROR(log)						Log(log,__FILE__,__LINE__);
#define	LOG_CRASH(log)						Log(log,__FILE__,__LINE__);



FELOWRIA_END

#include "Log/Log,inl"

#endif // FLOWRIA_LOG_INCLUDE
